package com.epam.edu.task01.tourism.voucher;

import com.epam.edu.task01.tourism.residence.ResidenceInformation;
import com.epam.edu.task01.tourism.road.RoadInformation;

public class VoucherToShopping extends VoucherToRelax {
	private int transferCost;

	public VoucherToShopping(int id, String country, String city,
			ResidenceInformation residenceInformation,
			RoadInformation roadInformation, int transferCost) {
		super(id, country, city, residenceInformation, roadInformation);
		this.transferCost = transferCost;
	}

	public int getTransferCost() {
		return transferCost;
	}

	public void setTransferCost(int transferCost) {
		this.transferCost = transferCost;
	}

	@Override
	public String toString() {
		return "VoucherToShopping [id=" + super.getId() + ", country="
				+ super.getCountry() + ", city=" + super.getCity() + ", "
				+ super.getResidenceInformation().toString() + ", "
				+ super.getRoadInformation().toString() + ", transferCost=" + transferCost + "]";
	}
	
	@Override
	public int getVoucherCost() {
		return (super.getVoucherCost() + this.transferCost * 130 / 100);
	}
	
	@Override
	public String getVoucherType() {
		return "VoucherToShopping";
	}
}
